/**
 * @author Yura Zhloba
 */
package com.flashdevs.yzh.log
{
import mx.collections.ArrayCollection;

public class LogLevel
{
	//static private const _lock : Lock = new Lock();

	static public const FATAL : LogLevel = new LogLevel(1000, "FATAL"); //, _lock);
	static public const ERROR : LogLevel = new LogLevel(8, "ERROR"); //, _lock);
	static public const WARN : LogLevel = new LogLevel(6, "WARN"); //, _lock);
	static public const INFO : LogLevel = new LogLevel(4, "INFO"); //, _lock);
	static public const DEBUG : LogLevel = new LogLevel(2, "DEBUG"); //, _lock);

	private var _code : int;
	public function get code() : int { return _code; }

	private var _name : String;
	public function get name() : String { return name; }

	public function LogLevel(code : int, name : String) //, lock : Lock/*prohibit creating instances*/)
	{
		_code = code;
		_name = name;
	}

	public function toString() : String { return _name; }
}
}

//class Lock { }
